class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.string :title
      t.text   :content
      t.integer :category_id
			t.string :permalink,:null => false
      t.integer :comments_count,:default => 0
      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end
